import request from 'utils/request'
import axios from 'axios';
const isReal = true
const serve = isReal ? request : axios
// 添加
export function add(data) {
  return serve({
    url: '/product/add',
    method: 'post',
    data
  })
}
// 获取列表
export function getTable(params) {
  return serve({
    url: '/product/list',
    method: 'get',
    params
  })
}
// 删除
export function del(params) {
  return serve({
    url: '/product/delete',
    method: 'get',
    params
  })
}
// 编辑
export function edit(data) {
  return serve({
    url: '/product/update',
    method: 'post',
    data
  })
}